package com.tubi.digui1;

public class digui1 {
    public static void main(String[] args) {
         int res =  getJc(5);
        System.out.println(res);
    }

    private static int getJc(int i) {
        if(i==1){
            return 1;
        }else {
            return i * getJc(i-1);
        }
    }
}
